package com.wdl.modules.myhouse.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wdl.modules.myhouse.common.MyPage;
import com.wdl.modules.myhouse.entity.sys.SysMenuEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wdl.modules.myhouse.entity.sys.SysRoleEntity;
import com.wdl.modules.myhouse.vo.MenuNodeVO;
import com.wdl.modules.myhouse.vo.SysMenuVO;

import java.util.List;

/**
 * 菜单表
 *
 * @author lucain sunlightcs@gmail.com
 * @since 1.0.0 2022-09-11
 */
public interface SysMenuService extends IService<SysMenuEntity> {

    /**
     * 分页获取菜单数据
     * @param mypage
     * @return
     */
    IPage<SysMenuEntity> getMenuByPage(MyPage mypage);

    /**
     * 构建节点关系树
     * @return
     */
    List<MenuNodeVO> buildMenuTree();
}